package org.jeecg.modules.storage.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 库存入库/出库单单品记录
 * @Author: cheng
 * @Date:   2023-04-25
 * @Version: V1.0
 */
@ApiModel(value="mt_storage_item对象", description="库存入库/出库单单品记录")
@Data
@TableName("mt_storage_item")
public class MtStorageItem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**主表记录id*/
    @ApiModelProperty(value = "主表记录id")
    private String storageId;
	/**条码*/
	@Excel(name = "条码", width = 15)
    @ApiModelProperty(value = "条码")
    private String barCode;
	/**机构*/
	@Excel(name = "机构", width = 15)
    @ApiModelProperty(value = "机构")
    private String unionId;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String equipName;
	/**设备id*/
	@Excel(name = "设备id", width = 15, dictTable = "mt_equip", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "设备id")
    private String equipId;
	/**分类*/
	@Excel(name = "分类", width = 15, dictTable = "mt_equip_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "分类")
    private String equipType;
	/**分类*/
	@Excel(name = "分类", width = 15)
    @ApiModelProperty(value = "分类")
    private String equipTypeName;
	/**入库/出库数量*/
	@Excel(name = "入库/出库数量", width = 15)
    @ApiModelProperty(value = "入库/出库数量")
    private java.math.BigDecimal quantity;
	/**成本价*/
	@Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private java.math.BigDecimal incurred;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal amount;
	/**单位编码*/
	@Excel(name = "单位编码", width = 15)
    @ApiModelProperty(value = "单位编码")
    private String unitCode;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String unitName;
}
